package com.jly.model;

import java.util.Date;
import java.util.List;

/**
 * 进销存等所有类型表的父类（提取共有字段）
 *
 * @author wan
 *
 */
public class PushTicketDetail{

    /**
     * 主键
     */
    private Integer ity_id;

    /**
     * 店铺id
     * 订货单为商家ID，发起方没有店铺时为0
     */
    private Integer store_id;

    private String store_name;

    /**
     * 该单类型:
     * 17定制片订货单
     * 16报损退,
     * 15验光单,
     * 14退货:出库退给总店,问题商品
     * 13加工不合格的商品单据记录,
     * 12取货单 ,
     * 11补货单,
     * 10出库单,
     * 8加工,
     * 7报损单(没用),
     * 6交付(没用),
     * 5调拨,
     * 4退货,
     * 3维修,
     * 2入库,
     * 1销售,
     * 0订货
     */
    private Integer ity_type;

    private String typename;

    /**
     * 流水号
     */
    private String ity_Number;

    /**
     * 支付类型:
     * -1:已结清;
     * 0:周结算;
     * 1:月计算 ;
     * 2:现金;
     * 3:支付宝;
     * 4:微信;
     * 5:刷卡;
     * 6:其他
     */
    private String ity_operatTime3;

    /**
     * 商品总件数
     */
    private Integer ity_operatPerson1;

    /**
     * 支付状态
     * 0已付清
     * -1未付清
     * 1已交付
     * 200手机端订单
     */
    private Integer ity_status;

    /**
     * 该单操作人员id
     */
    private Integer ity_operatPerson2;

    private String ity_operatPerson2name;

    /**
     * 该单创建时间
     */
    private Date ity_date;

    /**
     * 操作的人员id
     * 订货单:配货员/抢到单的人员;
     * 加工单:加工师;
     * 调拨单:对方店铺同一人/一般为登录人;
     * 销售单:收银员id;
     * 维修单:维修师;
     * 退货单:
     */
    private Integer ity_operatPersonId;

    private String ity_operatPersonIdname;

    /**
     * 人员操作时间
     */
    private Date ity_operatTime1;

    /**
     * 收件派送员
     * 加工/调货时候用
     * 销售单 验光师
     */
    private Integer ity_sjuid;

    private String ity_sjuidname;

    /**
     * 收件时间
     */
    private Date ity_sjtime;

    /**
     * 送件派送员
     * 加工/调货时候用
     * 销售单:销售员
     */
    private Integer ity_spuid;

    private String ity_spuidname;

    /**
     * 送件时间 加工/调货适用
     */
    private Date ity_sptime;

    /**
     * 收货验收人:只用于订货/调拨
     */
    private Integer ity_checkuid;

    private String ity_checkuidname;

    /**
     * 验收时间:只用于订货/调拨
     */
    private Date ity_checktime;

    /**
     * 定制片单:0 ,1已确认, 100定制中 ,101已入库, 99作废
     * 退货单:99作废,101退货完成,104 退货,98未审核,97不通过,100通过
     * 出库单:99此单作废,100已发货,101已入库,102入库失败(批发商出库的商品下架了),103已退货 104已核算
     * 入库单:2已入库
     * 退货单/维修单:0通过,-2未审核,-3 不通过
     * 出库单:99此单作废,100已发货,101已入库,102入库失败(批发商出库的商品下架了)
     * 订货:1待确认,2待配货， 3待配送，99作废, 100已发货/待签收 ，101已签收/已入库，102已退货 104已核算
     * 加工:-4已报损,-3已确认,-2已作废,-1驳回,0已申请,1已派单,2已取货,3等待加工,4加工中,5加工完成,6质检中,7质检通过,8质检未通过,9派送中,10验收通过,11验收未通过,12已交付,13已核算,14成品检测 ,15成品检测通过 ,16成品检测未通过 ,17已退货
     * 调拨:99作废,100调拨中,101 调拨完成,102 调拨失败
     * 补货:-1删除,1默认,2已生成订货单
     * 取货:2默认,3已发货
     */
    private Integer ity_operatPerson3;

    /**
     * 审核人
     * 订货单:通常是老板,权限是203以上人
     * 调拨单:对方店铺审核人/一般为老板
     * 销售单:不审核,此为交付人id
     * 其他单据:审核一般为老板
     */
    private Integer ity_audituid;

    private String ity_audituidname;

    /**
     * 审核时间/交付时间
     */
    private Date ity_operatTime2;

    /**
     * 订货单为批发商ID;
     * 调货为目标店铺id;
     * 加工为加工方店id;
     * 销售单为验光单主键;
     * 补货为供应商店铺id;
     * 验光为验光表主键;
     */
    private Integer ity_targetid;

    /**
     * 物流编号/销售单整单价格 加工单：加工单发起方ID如果为0则保存虚拟店铺名称 ，订货单本单的总金额
     */
    private String ity_logNumber;

    /**
     * 已付金额,销售单:已付l,出库单:实收
     */
    private Double ity_paidPrice;

    /**
     * 未付金额
     * 出库单:未收;
     * 销售单:未付;
     */
    private Double ity_unpaidPrice;

    /**
     * 订货:
     * 0:零售店收银机订单,
     * 1:批发商间同行订单,
     * 2:自定义订单,
     * 3:其他渠道订单
     * 加工:
     * 来源0
     * 销售单1
     * 自定义订单
     * 销售单 :原价
     */
    private String ity_source;

    /**
     * 加工单:验光单主键;
     * 订货单/出库单:0后台,1安卓;
     * 销售单:会员id;
     */
    private Integer ity_saleid;

    /**
     * 备注
     */
    private String ity_remark;

    /**
     * 生成二维码的唯一标识符
     */
    private String ity_uuid;

    /**
     * 发货地址，订货单：顾客（商家）的收货地址
     */
    private String ity_address;

    /**
     * 联系方式
     * 电话
     * 订货单：顾客（商家）的电话
     */
    private String ity_tel;

    /**
     * tb_storetostore主键
     * 店铺好友表主键
     */
    private Integer ity_stsid;

    /**
     * 加工单:取镜号;
     * 销售单:是否生成加工单,1已生成0默认;
     * 退维销单:单号;
     * 订货单:商家的店铺名称，商家ID为0时本名称为自定义名称
     */
    private String ity_glassesNum;

    /**
     * 加工:存放订货单主键ivtfatherid
     * 销售单:存放加工单主键
     */
    private Integer orderItyid;

    /**
     * 加工:存放加工单商品价格,
     * 销售单:改单的积分总数
     */
    private String glasses_price;

    /**
     * 加工单:箱号;
     * 补货:店铺名称;
     * 订货:1已生成补货单;
     * 销售单:一口价;
     * @return
     */
    private String ity_boxNumber;

    /**
     * 订单的状态
     * 默认 0,删除-1
     * @return
     */
    private Integer ity_state;

    /**
     * 加工单:镜片价格;
     * 出库单:找零;
     * @return
     */
    private String lens_price;

    /**
     * 加工单:镜架价格
     * @return
     */
    private String gframe_price;

    /**
     * 加工单:系统生成的取镜号
     * 退货单 :上级单据的类型
     * 出库单 :上级单据的类型
     * @return
     */
    private String ity_glassesNum1;

    /**
     * 加工单:对应的销售单号,
     * 补货单:供应商名称,
     * 损坏的单据 :加工单号
     * 加工单生成退货单 :加工单号
     * @return
     */
    private String ity_saleNum;

    /**
     * 加工单:核算单主键ID,
     * 销售单:套餐主键
     * 出库单、退货单:核算单主键ID,
     * @return
     */
    private Integer ity_asid;

    /**
     * 销售单是否走加工:1是2否,
     * 取货单-出库单-入库单原始总件数,
     * 加工单是否自提:0自提,1加工中心提
     */
    private Integer processStatus;

    /**
     * 整单折扣
     */
    private Double wholediscount;

    /**
     * 商品检测人ID
     * 销售单 总店是否出库 0默认 1出库
     */
    private Integer goods_detection;

    /**
     * 商品检测时间
     */
    private Date detection_date1;

    /**
     * 商品检测结果  销售单: 套餐升级价
     */
    private String detection_type;

    /**
     * 成品检测人ID,
     * 退维销的主键
     * 销售单 有总店商品 默认 0
     */
    private Integer finished_detection;

    /**
     * 成品检测时间
     */
    private Date detection_date2;

    /**
     * 成品检测结果   销售单: 套餐补差价
     */
    private String detection_type2;

    /**
     * PDA上收款的收款人ID
     */
    private Integer ity_shoukuanId;

    /**
     * PDA上收款的收款时间
     */
    private Date detection_date3;

    /**
     * 总成本价
     */
    private Double ity_orderPrice;

    /**
     * 优惠券价格
     */
    private Double ity_disPrice;

    /**
     * 远智行 虚拟店铺下加工单 虚拟店铺的顾客（发起人）
     */
    private String  ity_wxopenid;

    /**
     * 加工单：修改人，销售单：由销售单生成加工的取镜号
     */
    private String  ity_updateUser;

    /**
     *	加工单：修改时间
     */
    private Date ity_updateTime;

    /**
     *	加工单：加工生成的定制单ID
     */
    private Integer ity_dzid;

    private List<Goods> list;

    private String status;

    public String getStatus() {
        return status;
    }

    public void setStatus(String status) {
        this.status = status;
    }

    public Integer getIty_dzid() {
        return ity_dzid;
    }
    public void setIty_dzid(Integer ity_dzid) {
        this.ity_dzid = ity_dzid;
    }
    public String getDetection_type() {
        return detection_type;
    }
    public void setDetection_type(String detection_type) {
        this.detection_type = detection_type;
    }
    public String getDetection_type2() {
        return detection_type2;
    }
    public void setDetection_type2(String detection_type2) {
        this.detection_type2 = detection_type2;
    }
    public String getIty_updateUser() {
        return ity_updateUser;
    }
    public void setIty_updateUser(String ity_updateUser) {
        this.ity_updateUser = ity_updateUser;
    }
    public Date getIty_updateTime() {
        return ity_updateTime;
    }
    public void setIty_updateTime(Date ity_updateTime) {
        this.ity_updateTime = ity_updateTime;
    }
    public String getIty_wxopenid() {
        return ity_wxopenid;
    }
    public void setIty_wxopenid(String ity_wxopenid) {
        this.ity_wxopenid = ity_wxopenid;
    }
    public Double getIty_disPrice() {
        return ity_disPrice;
    }
    public void setIty_disPrice(Double ity_disPrice) {
        this.ity_disPrice = ity_disPrice;
    }
    public Double getIty_orderPrice() {
        return ity_orderPrice;
    }
    public void setIty_orderPrice(Double ity_orderPrice) {
        this.ity_orderPrice = ity_orderPrice;
    }
    public Integer getIty_shoukuanId() {
        return ity_shoukuanId;
    }
    public void setIty_shoukuanId(Integer ity_shoukuanId) {
        this.ity_shoukuanId = ity_shoukuanId;
    }
    public Date getDetection_date3() {
        return detection_date3;
    }
    public void setDetection_date3(Date detection_date3) {
        this.detection_date3 = detection_date3;
    }
    public Integer getGoods_detection() {
        return goods_detection;
    }
    public void setGoods_detection(Integer goods_detection) {
        this.goods_detection = goods_detection;
    }
    public Date getDetection_date1() {
        return detection_date1;
    }
    public void setDetection_date1(Date detection_date1) {
        this.detection_date1 = detection_date1;
    }
    public Integer getFinished_detection() {
        return finished_detection;
    }
    public void setFinished_detection(Integer finished_detection) {
        this.finished_detection = finished_detection;
    }
    public Date getDetection_date2() {
        return detection_date2;
    }
    public void setDetection_date2(Date detection_date2) {
        this.detection_date2 = detection_date2;
    }
    public Integer getProcessStatus() {
        return processStatus;
    }
    public void setProcessStatus(Integer processStatus) {
        this.processStatus = processStatus;
    }
    public Double getWholediscount() {
        return wholediscount;
    }
    public void setWholediscount(Double wholediscount) {
        this.wholediscount = wholediscount;
    }
    public Integer getIty_id() {
        return ity_id;
    }
    public void setIty_id(Integer ity_id) {
        this.ity_id = ity_id;
    }
    public Integer getStore_id() {
        return store_id;
    }
    public void setStore_id(Integer store_id) {
        this.store_id = store_id;
    }
    public Integer getIty_type() {
        return ity_type;
    }
    public void setIty_type(Integer ity_type) {
        this.ity_type = ity_type;
    }
    public String getIty_Number() {
        return ity_Number;
    }
    public void setIty_Number(String ity_Number) {
        this.ity_Number = ity_Number;
    }
    public String getIty_operatTime3() {
        return ity_operatTime3;
    }
    public void setIty_operatTime3(String ity_operatTime3) {
        this.ity_operatTime3 = ity_operatTime3;
    }
    public Integer getIty_operatPerson1() {
        return ity_operatPerson1;
    }
    public void setIty_operatPerson1(Integer ity_operatPerson1) {
        this.ity_operatPerson1 = ity_operatPerson1;
    }
    public Integer getIty_status() {
        return ity_status;
    }
    public void setIty_status(Integer ity_status) {
        this.ity_status = ity_status;
    }
    public Integer getIty_operatPerson2() {
        return ity_operatPerson2;
    }
    public void setIty_operatPerson2(Integer ity_operatPerson2) {
        this.ity_operatPerson2 = ity_operatPerson2;
    }
    public Date getIty_date() {
        return ity_date;
    }
    public void setIty_date(Date ity_date) {
        this.ity_date = ity_date;
    }
    public Integer getIty_operatPersonId() {
        return ity_operatPersonId;
    }
    public void setIty_operatPersonId(Integer ity_operatPersonId) {
        this.ity_operatPersonId = ity_operatPersonId;
    }
    public Date getIty_operatTime1() {
        return ity_operatTime1;
    }
    public void setIty_operatTime1(Date ity_operatTime1) {
        this.ity_operatTime1 = ity_operatTime1;
    }
    public Integer getIty_sjuid() {
        return ity_sjuid;
    }
    public void setIty_sjuid(Integer ity_sjuid) {
        this.ity_sjuid = ity_sjuid;
    }
    public Date getIty_sjtime() {
        return ity_sjtime;
    }
    public void setIty_sjtime(Date ity_sjtime) {
        this.ity_sjtime = ity_sjtime;
    }
    public Integer getIty_spuid() {
        return ity_spuid;
    }
    public void setIty_spuid(Integer ity_spuid) {
        this.ity_spuid = ity_spuid;
    }
    public Date getIty_sptime() {
        return ity_sptime;
    }
    public void setIty_sptime(Date ity_sptime) {
        this.ity_sptime = ity_sptime;
    }
    public Integer getIty_checkuid() {
        return ity_checkuid;
    }
    public void setIty_checkuid(Integer ity_checkuid) {
        this.ity_checkuid = ity_checkuid;
    }
    public Date getIty_checktime() {
        return ity_checktime;
    }
    public void setIty_checktime(Date ity_checktime) {
        this.ity_checktime = ity_checktime;
    }
    public Integer getIty_operatPerson3() {
        return ity_operatPerson3;
    }
    public void setIty_operatPerson3(Integer ity_operatPerson3) {
        this.ity_operatPerson3 = ity_operatPerson3;
    }
    public Integer getIty_audituid() {
        return ity_audituid;
    }
    public void setIty_audituid(Integer ity_audituid) {
        this.ity_audituid = ity_audituid;
    }
    public Date getIty_operatTime2() {
        return ity_operatTime2;
    }
    public void setIty_operatTime2(Date ity_operatTime2) {
        this.ity_operatTime2 = ity_operatTime2;
    }
    public Integer getIty_targetid() {
        return ity_targetid;
    }
    public void setIty_targetid(Integer ity_targetid) {
        this.ity_targetid = ity_targetid;
    }
    public String getIty_logNumber() {
        return ity_logNumber;
    }
    public void setIty_logNumber(String ity_logNumber) {
        this.ity_logNumber = ity_logNumber;
    }
    public Double getIty_paidPrice() {
        return ity_paidPrice;
    }
    public void setIty_paidPrice(Double ity_paidPrice) {
        this.ity_paidPrice = ity_paidPrice;
    }
    public Double getIty_unpaidPrice() {
        return ity_unpaidPrice;
    }
    public void setIty_unpaidPrice(Double ity_unpaidPrice) {
        this.ity_unpaidPrice = ity_unpaidPrice;
    }
    public String getIty_source() {
        return ity_source;
    }
    public void setIty_source(String ity_source) {
        this.ity_source = ity_source;
    }
    public Integer getIty_saleid() {
        return ity_saleid;
    }
    public void setIty_saleid(Integer ity_saleid) {
        this.ity_saleid = ity_saleid;
    }
    public String getIty_remark() {
        return ity_remark;
    }
    public void setIty_remark(String ity_remark) {
        this.ity_remark = ity_remark;
    }
    public String getIty_uuid() {
        return ity_uuid;
    }
    public void setIty_uuid(String ity_uuid) {
        this.ity_uuid = ity_uuid;
    }
    public String getIty_address() {
        return ity_address;
    }
    public void setIty_address(String ity_address) {
        this.ity_address = ity_address;
    }
    public String getIty_tel() {
        return ity_tel;
    }
    public void setIty_tel(String ity_tel) {
        this.ity_tel = ity_tel;
    }
    public Integer getIty_stsid() {
        return ity_stsid;
    }
    public void setIty_stsid(Integer ity_stsid) {
        this.ity_stsid = ity_stsid;
    }
    public String getIty_glassesNum() {
        return ity_glassesNum;
    }
    public void setIty_glassesNum(String ity_glassesNum) {
        this.ity_glassesNum = ity_glassesNum;
    }
    public Integer getOrderItyid() {
        return orderItyid;
    }
    public void setOrderItyid(Integer orderItyid) {
        this.orderItyid = orderItyid;
    }
    public String getGlasses_price() {
        return glasses_price;
    }
    public void setGlasses_price(String glasses_price) {
        this.glasses_price = glasses_price;
    }
    public String getIty_boxNumber() {
        return ity_boxNumber;
    }
    public void setIty_boxNumber(String ity_boxNumber) {
        this.ity_boxNumber = ity_boxNumber;
    }
    public Integer getIty_state() {
        return ity_state;
    }
    public void setIty_state(Integer ity_state) {
        this.ity_state = ity_state;
    }
    public String getLens_price() {
        return lens_price;
    }
    public void setLens_price(String lens_price) {
        this.lens_price = lens_price;
    }
    public String getGframe_price() {
        return gframe_price;
    }
    public void setGframe_price(String gframe_price) {
        this.gframe_price = gframe_price;
    }
    public String getIty_glassesNum1() {
        return ity_glassesNum1;
    }
    public void setIty_glassesNum1(String ity_glassesNum1) {
        this.ity_glassesNum1 = ity_glassesNum1;
    }
    public String getIty_saleNum() {
        return ity_saleNum;
    }
    public void setIty_saleNum(String ity_saleNum) {
        this.ity_saleNum = ity_saleNum;
    }
    public Integer getIty_asid() {
        return ity_asid;
    }
    public void setIty_asid(Integer ity_asid) {
        this.ity_asid = ity_asid;
    }

    public String getStore_name() {
        return store_name;
    }

    public void setStore_name(String store_name) {
        this.store_name = store_name;
    }

    public String getIty_operatPerson2name() {
        return ity_operatPerson2name;
    }

    public void setIty_operatPerson2name(String ity_operatPerson2name) {
        this.ity_operatPerson2name = ity_operatPerson2name;
    }

    public String getIty_operatPersonIdname() {
        return ity_operatPersonIdname;
    }

    public void setIty_operatPersonIdname(String ity_operatPersonIdname) {
        this.ity_operatPersonIdname = ity_operatPersonIdname;
    }

    public String getIty_sjuidname() {
        return ity_sjuidname;
    }

    public void setIty_sjuidname(String ity_sjuidname) {
        this.ity_sjuidname = ity_sjuidname;
    }

    public String getIty_spuidname() {
        return ity_spuidname;
    }

    public void setIty_spuidname(String ity_spuidname) {
        this.ity_spuidname = ity_spuidname;
    }

    public String getIty_checkuidname() {
        return ity_checkuidname;
    }

    public void setIty_checkuidname(String ity_checkuidname) {
        this.ity_checkuidname = ity_checkuidname;
    }

    public String getIty_audituidname() {
        return ity_audituidname;
    }

    public void setIty_audituidname(String ity_audituidname) {
        this.ity_audituidname = ity_audituidname;
    }

    public String getTypename() {
        return typename;
    }

    public void setTypename(String typename) {
        this.typename = typename;
    }

    public List<Goods> getList() {
        return list;
    }

    public void setList(List<Goods> list) {
        this.list = list;
    }
}
